package app.goods.info.services.domain;

import java.util.List;
import java.util.Objects;

import com.alibaba.fastjson.annotation.JSONField;

public class CataLogue {
	@JSONField(name = "catalogue_name")
	private String catalogueName;
	@JSONField(name = "catalogue_no")
	private String catalogueNo;
	@JSONField(name = "children")
	private List<String> children;

	public String getCatalogueName() {
		return catalogueName;
	}

	public void setCatalogueName(String catalogueName) {
		this.catalogueName = catalogueName;
	}

	public String getCatalogueNo() {
		return catalogueNo;
	}

	public void setCatalogueNo(String catalogueNo) {
		this.catalogueNo = catalogueNo;
	}

	public List<String> getChildren() {
		return children;
	}

	public void setChildren(List<String> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "CataLogue [catalogueName=" + catalogueName + ", catalogueNo=" + catalogueNo + ", children=" + children
				+ "]";
	}

	@Override
	public int hashCode() {
		return Objects.hash(catalogueName, catalogueNo);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CataLogue other = (CataLogue) obj;
		return Objects.equals(catalogueName, other.catalogueName) && Objects.equals(catalogueNo, other.catalogueNo);
	}

}
